package com.company.wechatpush.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Real
 * @since 2022-09-02
 */
@Data
@Component
@ConfigurationProperties("config")
public class PushConfig {
    /**
     * 微信公众平台的appID
     */
    private static String appId;
    /**
     * 微信公众平台的appSecret
     */
    private static String secret;
    /**
     * 应用AK
     */
    private static String ak;
    /**
     * 模板ID
     */
    private static String templateId;
    /**
     * 天行数据apiKey
     */
    private static String txKey;

    public static String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        PushConfig.appId = appId;
    }

    public static String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        PushConfig.secret = secret;
    }

    public static String getAk() {
        return ak;
    }

    public void setAk(String ak) {
        PushConfig.ak = ak;
    }

    public static String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        PushConfig.templateId = templateId;
    }

    public static String getTxKey() {
        return txKey;
    }

    public void setTxKey(String txKey) {
        PushConfig.txKey = txKey;
    }
}
